package com.moli.iov.sys.remote.impl;

import com.moli.iov.rest.RestResponse;
import com.moli.iov.sys.model.po.mongodb.LoginLog;
import com.moli.iov.sys.remote.ILoginLogRemoteService;
import com.moli.iov.sys.service.ILoginLogService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 * 登录日志
 * </p>
 *
 * @author zql
 * @since 2019/9/26 16:38
 */
@Service(group = "${service.group}")
public class LoginLogRemoteServiceImpl implements ILoginLogRemoteService {

  @Autowired
  private ILoginLogService loginLogService;

  @Override
  public RestResponse save(LoginLog loginLog) {
    loginLogService.save(loginLog);
    return RestResponse.success();
  }
}
